@extends('layouts.master')
@section('sider')
    <h1 class="text-center">资料页信息</h1>
    <img src="{{ $profile['profile_picture']}}" title="头像" alt="头像" width="100px">
    <p>{{ $profile['fullname'] }}</p>
    <p>{{ $profile_count['post_count'] }} Posts | {{ $profile_count['follow_count'] }} Following | {{ $profile_count['fans_count'] }} Followers</p>
@stop
@section('content')
    <h1 class="text-center">关注动态列表</h1>
    {{ link_to_action('VideosController@getCreate', $title = "添加一条记录", $parameters = array(), $attributes = array()) }}
    <table class="table">
        <tr>
            <th>id</th>
            <th>Title</th>
            <th>Filename</th>
            <th>Uploaded By</th>
            <th>Created At</th>
        </tr>
        @foreach ($datas as $video)
        <tr>
            <td>{{ $video['id'] }}</td>
            <td>{{ $video['title']}}</td>
            <td>{{ $video['filename']}}</td>
            <td>{{ $video['fullname']}}</td>
            <td>{{ date('Y-m-d H:i:s',$video['uploadtime'])}}</td>
        </tr>
        @endforeach
    </table>
    <div class="text-center">
        <ul class="pagination">
            <li><a href="#">&laquo;</a></li>
            @for ($i = 1; $i <= $page['last_page']; $i++)
                <li><a href="?page={{ $i }}">{{ $i }}</a></li>
            @endfor
            <li><a href="#">&raquo;</a></li>
        </ul>
    </div>
@stop